package org.monkey.common.cbs.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import java.util.Date;
import javax.persistence.MappedSuperclass;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@MappedSuperclass
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class BasePo {

  @TableField("id")
  Long id;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField("ctd_time")
  Date ctdTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField("upd_time")
  Date updTime;

  @TableField("deleted")
  Boolean deleted;
}
